from django.urls import path
from apps.generate_secret.views import AppSecretViews, AppSecretCreateViews, AppSecretManageViews

urlpatterns = [
    # 应用秘钥管理API
    # path('app/generateSecret', AppSecretViews.as_view(), name="生成应用签名token别名"),  # API别名
    # path('app/generateSecret', AppSecretViews.as_view(), name="生成应用签名token别名"),  # API别名
    path('app/generateSecret', AppSecretCreateViews.as_view(), name="创建应用秘钥"),

    path('app/secret/create', AppSecretViews.as_view(), name="生成应用签名token"),
    path('app/secret/get', AppSecretViews.as_view(), name="获取应用秘钥"),

    path('app/secret/list', AppSecretManageViews.as_view(), name="获取应用秘钥列表"),
    path('app/secret/update', AppSecretManageViews.as_view(), name="更新应用秘钥状态"),
    path('app/secret/delete', AppSecretManageViews.as_view(), name="删除应用秘钥"),
    # 根级别的generateSecret路由
    path('', AppSecretViews.as_view(), name="根级别生成应用签名token"),
]
